package com.hbpa.pan.server.modules.user.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author: BlcakTiger
 * @date: 2023/10/25 16:40
 * @contact: hsf6661@163.com
 * @description:
 */
@ApiModel(value = "用户在线修改密码参数")
@Data
public class ChangePasswordPO implements Serializable {
    private static final long serialVersionUID = -1943271327969863943L;

    @ApiModelProperty(value = "旧密码",required = true)
    @NotBlank(message = "密码不能为空")
    @Length(min = 8,max = 16,message = "请输入8-16位的密码")
    private String oldPassword;

    @ApiModelProperty(value = "新密码",required = true)
    @NotBlank(message = "密码不能为空")
    @Length(min = 8,max = 16,message = "请输入8-16位的密码")
    private String newPassword;
}
